﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="AddDetailItem.aspx.cs" Inherits="CustomerService.AddDetailItem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Product List</title>
    <link rel="Stylesheet" href="style.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ListView ID="ListView1" runat="server" OnSelectedIndexChanging="ListView1_SelectedIndexChanging">
        <LayoutTemplate>
            <b>Select Item to add to order</b><br />
            <table class="ItemList" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="3">
                        
                    </td>
                </tr>
                <tr style="font-weight: bold;">
                    <td></td>
                    <td>Item Code</td>
                    <td>Short Name</td>
                    <td>Long Name</td>
                </tr>
                <tr id="itemPlaceholder" runat="server" />
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Button ID="btnSelect" CommandName="SELECT" CommandArgument='<%# Eval("ProductID") %>'
                    Text="Select" Width="60" runat="server" OnCommand="btnSelect_Click" />
                </td>
                <td>
                    <%# Eval("ItemCode") %>
                </td>
                <td>
                    <%# Eval("ShortName") %>
                </td>
                <td>
                    <%# Eval("LongName") %>
                </td>
            </tr>
        </ItemTemplate>
        </asp:ListView>
    </div>
    </form>
</body>
</html>
